package models;

import play.db.jpa.*;
import play.data.validation.*;
import javax.persistence.*;

@Entity
@Table(name="Project")
public class Project extends Model {
    
    @Required
    @MaxSize(15)
    @MinSize(4)
    //@Match(value="^\\w*$", message="Not a valid username")
    public String project_number;
    
    @Required
    @MaxSize(100)
    public String project_note;
   
    public Project(String projectnumber, String projectnote) {
        this.project_number = projectnumber;
        this.project_note = projectnote;
    }

    public String toString()  {
        return "User(" + project_number + ")";
    }
    
}
